<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp" %>
 
<jsFileName><!--js/pageJS/useradmin/page_modulePermissions.js--></jsFileName>
<form name="modulePermissionsFormName" id="modulePermissionsFormId" method="post" action="modulePermissionAction.do">
<div  class="con_wrap_padding">
	<div class="spacing"></div>
<input name="actionType" type="hidden" value="1">
<input name="complength" type="hidden" value="17">
<input name="psetIdName" type="hidden" >
<table class="form-table">
  <thead>
  <tr>
    <td colspan="2"  align="center">模块权限设置</td>
  </tr>
  </thead>
  <tr align="left">
    <td colspan="2" valign="middle" class="L12bold">
        <input id="btnexpandall" type="button" checked="false" class="btn-long" value="全部展开" onClick="Ext.milan.pagejs.page_modulepermissions.expandall(this);">
    </td>
  </tr>
  <c:forEach items="${list}" var="item" varStatus="status">
  	<tr>
	    <td width="90"  align="left" nowrap style="cursor:hand;" onClick="Ext.milan.pagejs.page_modulepermissions.showout('${status.index}');" class="leftblank">
	    	<img id="img${status.index}" src="skins/default/images/plus.jpg" width="9" height="9" align="absmiddle"><span class="leftblank">${item.text}</span>
	    </td>
	    <td width="801">
			<table width="100%"  cellpadding="3" cellspacing="1"  class="contem"  id="table${status.index}" style="display:none ">
				<c:forEach items="${item.item}" var="subitem" varStatus="status2">
		        <tr class="l12" id="Per${subitem.id}">
		            <td width="150" align="left" valign="middle"><label for="chkper${subitem.id}">${subitem.text}</font></label></td>
		          	<td align="left" valign="middle" style="word-break: break-all;" class="leftblank">${subitem.content}</td>
		          	<td width="100">
		            	<a class="btn_longest" title="设置模块权限" href="javascript:void(0)" 
		            		onClick="Ext.milan.pagejs.page_modulepermissions.showSetModulePermission('modulePermissionsFormId','${subitem.id}|${subitem.text}',${subitem.en});">设置模块权限</a>
		            </td>
		        </tr>
		        </c:forEach>
		    </table>    
	    </td>
	  </tr>
  </c:forEach>
        
</table>
</div>
</form>

